﻿@using Dyn.News.ViewModels;
@{
    Style.Require("DynEcommerce");
    var category = Model.Category as CategoryViewModel;
}

<div class="category-summary">
    <div class="image">
        @if (category.CurrentMedia.PublicUrl != null)
        {
            <a href="@Url.ItemDisplayUrl(category.CategoryPart)">
                <img title="@category.CurrentMedia.Caption" src="@Url.Content(category.CurrentMedia.Thumbnail.PublicUrl)" />
            </a>
        }
    </div>
    <div class="description">
        <p>@category.CategoryPart.Description</p>
    </div>
</div>



